<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!--返回错误信息-->
<?php echo validation_errors(); ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <?php
    $title = [
        'title' => '供应商采购统计明细',
    ];
    $this->load->view('/admin/common/header', $title);
    ?>
</head>

<body data-type="widgets">
<script src="/assets/js/theme.js"></script>
<div class="am-g tpl-g">

    <?php $this->load->view('/admin/common/bodyLeft'); ?>
    <script type="text/javascript">
        $(".js-sidebar-nav>li:nth-child(11)>ul").show(80);
        $(".js-sidebar-nav>li:nth-child(11)>a>span").addClass("sidebar-nav-sub-ico-rotate");
        $(".js-sidebar-nav>li:nth-child(11)>ul>li:nth-child(1)>a").addClass("active");
    </script>
    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">
        <div class="row-content am-cf">
            <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title  am-cf">
                                <ol class="am-breadcrumb am-breadcrumb-slash">
                                    <li><a href="/admin/statement/order?page=1&type=gys">供应商采购订单统计</a></li>
                                    <li class="am-active">供应商采购统计明细</li>
                                </ol>
                            </div>
                        </div>
                        <form action="/admin/stock/confirm" method="post" enctype="multipart/form-data" class="am-form am-text-sm">
                            <div class="widget-body  am-fr">
                                <div class="tpl-table-black-operation">
                                    <a href="javascript:void(0);" class="tpl-table-black-operation-del">
                                        基本信息
                                    </a>
                                </div>

                                <div style="margin-top: 20px">
                                    <div class="am-g">
                                        <!-- Row start -->
                                        <div class="am-u-sm-12 am-g-fixed">
                                            <div class="am-g">
                                                <div class="am-u-md-6">
                                                    <!--                                                    <form class="am-form am-text-sm">-->
                                                    <div class="am-form-group am-u-md-12 ">
                                                        <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                               for="code">供应商编号</label>
                                                        <div class="am-u-md-10">
                                                            <input type="text" name="code" value="<?php echo $list['code'] ?>"
                                                                   id="code" readonly>
                                                        </div>

                                                    </div>

                                                    <div class="am-form-group am-u-md-12 ">
                                                        <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                               for="supplierUser">供应商账号</label>
                                                        <div class="am-u-md-10">
                                                            <input type="text" name="supplierUser" value="<?php echo $list['supplierUser'] ?>"
                                                                   id="supplierUser" disabled="disabled">
                                                        </div>


                                                    </div>

                                                    <div class="am-form-group am-u-md-12 ">
                                                        <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                               for="linkMan">联系人</label>
                                                        <div class="am-u-md-10">
                                                            <input type="text" name="linkMan" value="<?php echo $list['linkMan'] ?>"
                                                                   id="linkMan" disabled="disabled">
                                                        </div>


                                                    </div>

                                                    <div class="am-form-group am-u-md-12 ">
                                                        <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                               for="address">公司地址</label>

                                                        <div class="am-u-md-10 am-margin-vertical-sm">
                                                            <input type="text" name="address" id="address" value="<?php echo $list['address'] ?>" placeholder="详细地址" disabled="disabled"/>
                                                        </div>


                                                    </div>
                                                    <!--                                                    </form>-->
                                                </div>

                                                <div class="am-u-md-6">
                                                    <!--                                                    <form class="am-form am-text-sm">-->
                                                    <div class="am-form-group am-u-md-12 ">
                                                        <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                               for="name">供应商名称</label>
                                                        <div class="am-u-md-10">
                                                            <input type="text" name="name" value="<?php echo $list['name']?>"
                                                                   id="name" disabled="disabled">
                                                        </div>


                                                    </div>

                                                    <div class="am-form-group am-u-md-12 ">
                                                        <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                               for="supplierPass">密码</label>
                                                        <div class="am-u-md-10">
                                                            <input type="text" name="supplierPass" value="<?php echo $list['supplierPass']?>"
                                                                   id="supplierPass" disabled="disabled">
                                                        </div>

                                                    </div>

                                                    <div class="am-form-group am-u-md-12 ">
                                                        <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                               for="phone">联系电话</label>
                                                        <div class="am-u-md-10">
                                                            <input type="text" name="phone" value="<?php echo $list['phone']?>"
                                                                   id="phone" disabled="disabled">
                                                        </div>


                                                    </div>



                                                    <!--                                                    </form>-->
                                                </div>
                                            </div>
                                        </div>
                                        <!-- Row end -->
                                    </div>
                                    <hr>
                                </div>

                                <div class="tpl-table-black-operation">
                                    <a href="javascript:void(0);" class="tpl-table-black-operation-del">
                                        采购订单统计
                                    </a>
                                </div>

                                <div style="margin-top: 20px">
                                    <div class="am-u-sm-12">
                                        <table width="100%"
                                               class="am-table am-table-compact am-table-striped tpl-table-black "
                                               id="example-r">
                                            <thead>
                                            <tr>
                                                <th width="5%">序号</th>
                                                <th width="15%">商品编码</th>
                                                <th width="10%">商品名称</th>
                                                <th width="15%">商品规格</th>
                                                <th width="5%">单位</th>
                                                <th width="10%">进货数量</th>
                                                <th width="10%">进货单价</th>
                                                <th width="10%">进货金额</th>
                                                <th width="20%">时间</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php

                                            foreach ($goodsMessage as $k=>$v){
                                                echo '<tr class="line">
                                              
                                                   <td class="order">'.$v['order'].'</td>
                                                <td data-id="'.$v['dataId'].'" class="product_no">'.$v['product_no'].'</td>
                                                <td class="name">'.$v['name'].'</td>
                                                <td class="specification"   >'.html_entity_decode($v['specification']).'</td>
                                                <td class="goodsUnit">'.$v['goodsUnit'].'</td>';

                                                    echo '<td>
                                                    <div class="am-u-md-12">
                                                        <input  type="text" name="" class=" quantity" value="'.$v['quantity'].'" disabled="disabled">
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="am-u-md-12">
                                                        <input  type="text" name="" class=" price" value="'.$v['price'].'" disabled="disabled">
                                                    </div>
                                                </td>
                                                <td class="price-all">'.$v['priceAll'].'</td>

                                                <td>
                                                        <input  type="text" name="" class="remarks" value="'.date('Y-m-d',$v['time']).'" disabled="disabled">
                                                </td>
                                            </tr>';

                                            }


                                            ?>
                                            <!-- more data -->
                                            </tbody>
                                        </table>
                                        <hr>
                                        <div class="btn-box">

                                            <button onclick="back()" type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " style="width:220px">取消</button>
                                        </div>
                                    </div>
                                </div>

                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
<script>
    function back() {
        window.history.back();
    }
</script>

<script src="/assets/js/amazeui.min.js"></script>
<script src="/assets/js/amazeui.datatables.min.js"></script>
<script src="/assets/js/dataTables.responsive.min.js"></script>
<script src="/assets/js/app.js"></script>
</body>

</html>